home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / time.h < prev    next >
C/C++ Source or Header  |  1990-11-07  |  1KB  |  49 lines

  1. /*
  2.  * Copyright (c) 1983, 1987 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)time.h    1.2 (Berkeley) 3/4/87
  7.  */
  8.  
  9. #ifndef _TIME
  10. #define _TIME
  11.  
  12. #include <cfuncproto.h>
  13.  
  14. #ifndef _TIME_T
  15. #define _TIME_T
  16. typedef    long    time_t;
  17. typedef    long    clock_t;
  18. #endif
  19.  
  20. /*
  21.  * Structure returned by gmtime and localtime calls (see ctime(3)).
  22.  */
  23. struct tm {
  24.     int    tm_sec;
  25.     int    tm_min;
  26.     int    tm_hour;
  27.     int    tm_mday;
  28.     int    tm_mon;
  29.     int    tm_year;
  30.     int    tm_wday;
  31.     int    tm_yday;
  32.     int    tm_isdst;
  33.     long    tm_gmtoff;
  34.     char    *tm_zone;
  35. };
  36.  
  37. _EXTERN clock_t clock _ARGS_((void));
  38. _EXTERN time_t time _ARGS_((time_t *tp));
  39. _EXTERN time_t mktime _ARGS_((struct tm *tp));
  40. _EXTERN double difftime _ARGS_((time_t time2, time_t time1));
  41. _EXTERN struct tm *gmtime _ARGS_((_CONST time_t *tp));
  42. _EXTERN struct tm *localtime _ARGS_((_CONST time_t *tp));
  43. _EXTERN char *asctime _ARGS_((_CONST struct tm *tp));
  44. _EXTERN char *ctime _ARGS_((_CONST time_t *tp));
  45. _EXTERN int strftime _ARGS_ ((char *s, int smax, _CONST char *fmt,
  46.                              _CONST struct tm *tp));
  47.  
  48. #endif /* _TIME */
  49.